package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;
    import Message.Public.*;

    public class SGuildStructureInfo extends Object implements IMessageBase
    {
        public var type:EGuildStructureType;
        public var level:int;
        public var leftTime:int;
        public const _type:int = 12049;
        public static var _regist:SGuildStructureInfo = new SGuildStructureInfo(true);

        public function SGuildStructureInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            
        }

        public function getType() : int
        {
            return this._type;
        }

        public function clone() : IMessageBase
        {
            return new SGuildStructureInfo();
        }

        public function __write(param1:SerializeStream) : void
        {
            this.type.__write(param1);
            param1.writeInt(this.level);
            param1.writeInt(this.leftTime);
            
        }

        public function __read(param1:SerializeStream) : void
        {
            this.type = EGuildStructureType.__read(param1);
            this.level = param1.readInt();
            this.leftTime = param1.readInt();
            
        }

    }
}
